#!/bin/bash

# 设置环境变量
export DYLD_LIBRARY_PATH="/usr/local/lib:/usr/lib:$DYLD_LIBRARY_PATH"
export LD_LIBRARY_PATH="/usr/local/lib:/usr/lib:$LD_LIBRARY_PATH"

# 如果存在 Homebrew OpenSSL，也添加其路径
if [ -d "/opt/homebrew/opt/openssl@3" ]; then
    export DYLD_LIBRARY_PATH="/opt/homebrew/opt/openssl@3/lib:$DYLD_LIBRARY_PATH"
    export LD_LIBRARY_PATH="/opt/homebrew/opt/openssl@3/lib:$LD_LIBRARY_PATH"
fi

# 运行应用
cjpm test
